search entry: Add a tooltip to th clear icon
authorMatthias Clasen <mclasen@redhat.com>
Tue, 19 Feb 2019 05:32:35 +0000 (00:32 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 19 Feb 2019 05:32:35 +0000 (00:32 -0500)
Similar to what we do for the caps-lock warning in the
password entry.

Closes #1483

gtk/gtksearchentry.c

index b4c47f4c716be5f5fc37714a1b65308fe8e81dbe..a73e32963dfaf011cedde01d2ce83228d4bbd12d 100644 (file)
@@ -505,6 +505,7 @@ gtk_search_entry_init (GtkSearchEntry *entry)
   g_signal_connect (priv->entry, "activate", G_CALLBACK (activate_cb), entry);
 
   priv->icon = gtk_image_new_from_icon_name ("edit-clear-symbolic");
+  gtk_widget_set_tooltip_text (priv->icon, _("Clear entry"));
   gtk_container_add (GTK_CONTAINER (priv->box), GTK_WIDGET (priv->icon));
   gtk_widget_hide (priv->icon);